from django.contrib import admin
from obols.models import ObolEvent, ObolAgent

class ObolAgentAdmin(admin.ModelAdmin):
    list_display = ('name', 'content_type', 'object_id')

class ObolEventAdmin(admin.ModelAdmin):
    list_display = ('from_whom', 'to_whom', 'what_resource_type', 'what_resource_id', 'what_for', 'web_resource', 'obols', 'when')

admin.site.register(ObolAgent, ObolAgentAdmin)
admin.site.register(ObolEvent, ObolEventAdmin)
